package com.eh.command.util;

import com.eh.command.controller.RemoteController;
import com.eh.reflectoin.dto.MethodInvokerRequest;

/**
 * Created by David on 2016/4/30.
 */
public class OperationHistoryUtil {
    public static void record(Object bean, String methodName, Object... args) {
        RemoteController.getInstance().addOperationHistory(
                new MethodInvokerRequest.Builder().bean(bean).methodName(methodName).
                        args(args).build());
    }
}
